//
//  WmcDevNetworkApiListVM.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/6/27.
//

import UIKit

class WmcDevNetworkApiListVM: WmcBaseVM {
    struct WmcApiGroupModel {
        var name: String = ""
        var list: [WmcApiModel] = []
    }
    
    struct WmcApiModel {
        var name: String = ""
        var path: String = ""
        var link: String = ""
    }
    
    private(set) lazy var dataSource: [WmcApiGroupModel] = {
        let api_1 = WmcApiModel(name: "申请资源上传", path: "/media/v1/resource/applyUpload", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511881&itf=2268930")
        let api_2 = WmcApiModel(name: "批量申请资源上传", path: "/media/v1/resource/applyBatchUpload", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511881&itf=2269425")
        let api_3 = WmcApiModel(name: "资源复制", path: "/media/v1/resource/applyCopy", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511881&itf=2270144")
        let api_4 = WmcApiModel(name: "申请访问资源", path: "/media/v1/resource/access", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511881&itf=2269007")
        let api_5 = WmcApiModel(name: "查询应用配置", path: "/media/v1/app/getConfigs", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511923&itf=2269147")
        let api_6 = WmcApiModel(name: "查询水印配置", path: "/media/v1/watermark/listWatermarks", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511880&itf=2269143")
        let api_7 = WmcApiModel(name: "查询企业logo", path: "/media/v1/brand/search", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511880&itf=2269144")
        let api_8 = WmcApiModel(name: "水印分享微信接口", path: "/v1/watermark/share", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511880&itf=2286445")
        let api_9 = WmcApiModel(name: "获取分享水印模板", path: "/media/v1/watermark/getWmInfo", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511880&itf=2286456")
        let api_10 = WmcApiModel(name: "上传资源到相册", path: "/media/v1/album/applyUpload", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511883&itf=2269150")
        let api_11 = WmcApiModel(name: "查询相册", path: "/media/v1/album/list", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511883&itf=2269190")
        let api_12 = WmcApiModel(name: "从相册删除资源", path: "/media/v1/album/delete", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511883&itf=2269186")
        let api_13 = WmcApiModel(name: "日历获取拍照的日期", path: "/media/v1/album/getTakeDate", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511883&itf=2270078")
        let api_14 = WmcApiModel(name: "分类照片查询", path: "/media/v1/album/classifyList", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511883&itf=2270108")
        let api_15 = WmcApiModel(name: "水印分类获取查询", path: "/media/v1/album/watermarkList", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511883&itf=2270164")
        let api_16 = WmcApiModel(name: "保存分享信息", path: "/media/v1/album/shareAlbum", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511883&itf=2274169")
        let api_17 = WmcApiModel(name: "获取指定时间以前最近一次拍照时间", path: "/media/v1/album/getPreDate", link: "http://rap2.taobao.org/organization/repository/editor?id=302804&mod=511883&itf=2277151")
        
        let section_1 = WmcApiGroupModel(name: "资源C端接口", list: [api_1, api_2, api_3, api_4])
        let section_2 = WmcApiGroupModel(name: "应用C端接口", list: [api_5])
        let section_3 = WmcApiGroupModel(name: "水印C端接口", list: [api_6, api_7, api_8, api_9])
        let section_4 = WmcApiGroupModel(name: "相册C端接口", list: [api_10, api_11, api_12, api_13, api_14, api_15, api_16, api_17])
        
        return [section_1, section_2, section_3, section_4]
    }()
}
